/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2020年1月1日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package test.practice;

/**
 * @Type A20191230_fpnq
 * @Desc
 * @author 52489
 * @date 2020年1月1日
 * @Version V1.0
 */
public class A20191230_fpnq {

    public static void main(String[] args) {
        int[] num = new int[5];
        f(num.length, num);
    }

    /**
     * @param num
     * @param num
     */
    private static int f(int n, int[] num) {
        if (n > 0) {
            num[n] = f(n - 1, num) + f(n - 2, num);
        }

        return n;
    }

}
